package com.avic.modules.mapping.service.mapper;

import com.avic.common.mapper.CoreMapper;
import com.avic.modules.mapping.domain.DataMapping;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface DataMappingMapper extends CoreMapper<DataMapping> {

    @Select("SELECT id,equip_id,tag_name,data_name,data_type,data_addr,go_online,offline,record_type,record_cate,display,is_del from" +
            " data_mapping where equip_id = #{equipId}")
    List<DataMapping> selectDataMapping(@Param("equipId") String equipId);
}
